INCLUDE_DIRECTORIES (../)

ADD_EXECUTABLE(
        EWAWebTest

        Main.cpp

        WebCodecsThread.hpp
        WebCodecsThread.cpp
)

TARGET_LINK_LIBRARIES (EWAWebTest EyerAV)
TARGET_LINK_LIBRARIES (EWAWebTest EyerAVC)
TARGET_LINK_LIBRARIES (EWAWebTest EyerMath)
TARGET_LINK_LIBRARIES (EWAWebTest EyerCore)
TARGET_LINK_LIBRARIES (EWAWebTest EyerThread)

TARGET_LINK_LIBRARIES (EWAWebTest avformat)
TARGET_LINK_LIBRARIES (EWAWebTest avcodec)
TARGET_LINK_LIBRARIES (EWAWebTest swscale)
TARGET_LINK_LIBRARIES (EWAWebTest swresample)
TARGET_LINK_LIBRARIES (EWAWebTest avutil)

file(COPY
        ${CMAKE_CURRENT_SOURCE_DIR}/index.html
        DESTINATION
        ${CMAKE_CURRENT_BINARY_DIR}/
        )

file(COPY
        ${CMAKE_CURRENT_SOURCE_DIR}/mp4.html
        DESTINATION
        ${CMAKE_CURRENT_BINARY_DIR}/
        )

INSTALL(
        TARGETS EWAWebTest
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
)